﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SIMCObjetoNegocio;
using SIMCPresenter;
using System.Web.Security;

public partial class SiteEcoGroup : System.Web.UI.MasterPage 
{
   
    private MembershipUsuario usuario;
   
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);       
        usuario = ((MembershipUsuario)Session["Usuario"]);
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["variable"] != null)
        {
                lblNombreUsuario.Text  = usuario.Nombre + ' ' + usuario.Apellido;
        }
        else
        {
            Response.Redirect("~/Account/Login.aspx");
        }
    }
    protected void lbtnSalir_Click(object sender, EventArgs e)
    {
        Session["variable"] = null;
        Response.Redirect("~/Account/Login.aspx");
    }
}

 

    

    




